import junit.framework.TestCase;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class liczbaTest extends TestCase {
	liczba x;

	@Before
	public void setUp() {
		x = new liczba(7);
	}
	@Test
	public void testI() {
		assertNotNull(x);
	}
	@Test
	public void testII() {
		assertEquals("" + 111, x.zamiana(2));
	}
	@Test(timeout = 1)
	public void testIII() {
		assertSame(16, x.znak.length);
	}	
	@Test
	public void testIV() {
		assertTrue(x.n > 0);
	}
	@After
	public void testV(){
		x = null;
		assertNull(x);
	}
    @Test
    public void test17() {
        x = new liczba(17);
        assertEquals(17, x.zamiana(17));
    }
}
